﻿using Microsoft.Ted.Wacel.Redis;
using Microsoft.Ted.Wacel.TestConsole.Properties;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Microsoft.Ted.Wacel.TestConsole
{
    public class RedisDictionaryTester
    {
        public static void BasicPutGet()
        {
            Dictionary<Customer> dict = new Dictionary<Customer>("metweet", Settings.Default.RedisHost);
            dict["abc"] = new Customer { Id = 123, Name = "Tom" };
            VisualTester.AreEqual("Tom", dict["abc"].Name);
        }
        [Serializable]
        private class Customer
        {
            public int Id { get; set; }
            public string Name { get; set; }
        }
    }
}
